﻿<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>Login</title>

    <link href="css/style.css" rel="stylesheet">
    <link href="css/style-responsive.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->
</head>

<body class="login-body">

    <div class="container">
        <form class="form-signin formValid" action="index.html">
            <div class="form-signin-heading text-center">
                <h1 class="sign-title">用户登录</h1>
                <img src="images/login-logo.png" alt="" />
            </div>
            <div class="login-wrap">
                <input name="userName" type="text" class="form-control" placeholder="用户名:邮箱" autofocus>
                <input name="userPwd" type="password" class="form-control" placeholder="密码">
                <div class="row">
                    <div class="col-md-8">
                        <input name="userCode" type="text" class="form-control">
                    </div>
                    <div class="col-md-4">
                        <img style="width:75px;height:36px;" src="http://img.weimob.com/static/df/67/58/image/20140725/20140725071731_76379.jpg">
                    </div>
                </div>
                <button class="btn btn-lg btn-login btn-block" type="submit">
                    <i class="fa fa-check"></i>
                </button>

                <div class="registration">
                    还没有账号?
                    <a class="" href="registration.html">
                        注册
                    </a>
                </div>
                <label class="checkbox">
                  
                    <span class="pull-right">
                        <a data-toggle="modal" href="#myModal"> 忘记密码?</a>

                    </span>
                </label>

            </div>

            <!-- Modal -->
            <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal" class="modal fade">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                            <h4 class="modal-title">忘记密码 ?</h4>
                        </div>
                        <div class="modal-body">
                            <p>输入您的注册邮箱重置密码!.</p>
                            <input type="text" placeholder="邮箱" autocomplete="off" class="form-control placeholder-no-fix">
                        </div>
                        <div class="modal-footer">
                            <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
                            <button class="btn btn-primary" type="button">确认</button>
                        </div>
                    </div>
                </div>
            </div>
            <!-- modal -->

        </form>
    </div>



    <!-- Placed js at the end of the document so the pages load faster -->
    <!-- Placed js at the end of the document so the pages load faster -->
    <script src="js/jquery-1.10.2.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/modernizr.min.js"></script>

    <script type="text/javascript" src="js/jquery.validate.min.js"></script>
    <script type="text/javascript">
    var Script = function() {

        $.validator.setDefaults({
            submitHandler: function() {
                alert("已提交!");
            }
        });

        $().ready(function() {
            // validate signup form on keyup and submit
            $(".form-signin").validate({
                rules: {
                    userName: {
                        required: true,
                        email: true
                    },
                    userPwd: "required",
                    userCode: "required"
                },
                messages: {
                    userName: {
                        required: "请输入用户名!",
                        email: "邮箱格式不正确!"
                    },
                    userPwd: "请输入密码!",
                    userCode: "请输入验证码!"
                }
            });
        });


    }();
    </script>


</body>

</html>
